/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 交易Entity
 */
@Table(name="biz_trade", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="type", attrName="type", label="类型【提现/返佣】"),
		@Column(name="bank_id", attrName="bankId", label="银行卡Id"),
		@Column(name="amount", attrName="amount", label="交易金额"),
		@Column(name="balance", attrName="balance", label="余额"),
		@Column(name="status", attrName="status", label="状态"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class Trade extends DataEntity<Trade> {

	private static final long serialVersionUID = 1L;
	private String memberId;		// 会员Id

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	private String type;		// 类型【提现/返佣】

	public String getBankId() {
		return bankId;
	}

	public void setBankId(String bankId) {
		this.bankId = bankId;
	}

	private String bankId;		// 银行卡Id

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	private Double amount;		// 交易金额

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	private Double balance;		// 余额

	@Override
	public String getStatus() {
		return status;
	}

	@Override
	public void setStatus(String status) {
		this.status = status;
	}

	private String status;		// 状态

	public Trade() {
		this(null);
	}

	public Trade(String id){
		super(id);
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
}